技术饭 Nginx的启动、停止与重启

Nginx的启动、停止与重启启动,启动代码格式:nginx安装目录地址 -c nginx配置文件地址,例如:/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

阅读全文 » 1264天前
2020年11月17日

技术饭 CentOS8 Nginx+PHP7.2+mysql8+redis+git的配置以及注意事项

CentOS8 Nginx+PHP7.2+mysql8的配置以及注意事项,CentOS8的配置相对Contos7比较简单。在以下讲解中会详细讲解到两个系统nginx、php、mysql8的安装和配置。目前nginx1.14、php7.2、mysql8都已经加入centos8官方源,使用和配置都简单很多。

阅读全文 » 1270天前
2020年11月11日

技术饭 nginx+php使用open_basedir限制站点目录防止跨站

今天在帮助一个朋友配置一台服务器时发现网站配置好了缓存目录读写不成功,在打开错误时发现提示 Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../license.php) is not within the allowed path(s): 错误了。

阅读全文 » 1958天前
2018年12月24日